Skip to content

Commit

Permalink
Merge branch 'dev-E2EE-2407' into 'master'
Browse files Browse the repository at this point in the history
feat(E2EE-2407): Add support of PrehashedAndEncryptedPassphrase in Enroll API

See merge request TankerHQ/sdk-python!320
  • Loading branch information
ntalfer committed Dec 20, 2024
2 parents 4b2cfd4 + 22fb13f commit 15294eb
Show file tree
Hide file tree
Showing 6 changed files with 539 additions and 245 deletions.
6 changes: 4 additions & 2 deletions cffi_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ enum tanker_verification_method_type
TANKER_VERIFICATION_METHOD_E2E_PASSPHRASE,
TANKER_VERIFICATION_METHOD_PREVERIFIED_OIDC,
TANKER_VERIFICATION_METHOD_OIDC_AUTHORIZATION_CODE,
TANKER_VERIFICATION_METHOD_PREHASHED_AND_ENCRYPTED_PASSPHRASE,

TANKER_VERIFICATION_METHOD_LAST
};
Expand Down Expand Up @@ -310,12 +311,13 @@ struct tanker_verification
char const* preverified_phone_number;
tanker_preverified_oidc_verification_t preverified_oidc_verification;
tanker_oidc_authorization_code_verification_t oidc_authorization_code_verification;
char const* prehashed_and_encrypted_passphrase;
};

struct tanker_verification_method
{
uint8_t version;
// enum cannot be binded to java as they do not have a fixed size.
// enum cannot be bound to java as they do not have a fixed size.
// It takes a value from tanker_verification_method_type:
uint8_t verification_method_type;
char const* value1;
Expand Down Expand Up @@ -352,7 +354,7 @@ struct tanker_sharing_options
struct tanker_attach_result
{
uint8_t version;
// enum cannot be binded to java as they do not have a fixed size.
// enum cannot be bound to java as they do not have a fixed size.
// It takes a value from the enum tanker_status:
uint8_t status;
tanker_verification_method_t* method;
Expand Down
Loading

0 comments on commit 15294eb

Please sign in to comment.