Skip to main content

KeyProtectionLevel

Represents the protection level of a cryptographic key.

  • Full name: \Bloock\Entity\Key\KeyProtectionLevel

Constants​

ConstantVisibilityTypeValue
SOFTWAREpublic"SOFTWARE"
HSMpublic"HSM"
UNRECOGNIZEDpublic"UNRECOGNIZED"

Methods​

toProto​

public static toProto(string $type): int
  • This method is static.

Parameters:

ParameterTypeDescription
$typestring

fromProto​

public static fromProto(int $alg): string
  • This method is static.

Parameters:

ParameterTypeDescription
$algint


Automatically generated on 2024-04-17