askarKeyGetEphemeral function
- LocalKeyHandle handle
Implementation
AskarResult<bool> askarKeyGetEphemeral(LocalKeyHandle handle) {
Pointer<Int8> intPointer = calloc<Int8>();
try {
final result = nativeAskarKeyGetEphemeral(handle.toInt(), intPointer);
final errorCode = ErrorCode.fromInt(result);
final int output = (errorCode == ErrorCode.success) ? intPointer.value.toInt() : 0;
return AskarResult<bool>(errorCode, intToBool(output));
} finally {
freePointer(intPointer);
}
}