PHP 인터페이스 Jose\Algorithm\ContentEncryptionAlgorithmInterface

상속: extends Jose\Algorithm\JWAInterface
파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
decryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string $tag ) : string Decrypt data.
encryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string &$tag ) : string Encrypt data.
getCEKSize ( ) : integer
getIVSize ( ) : integer | null

메소드 상세

decryptContent() 공개 메소드

Decrypt data.
public decryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string $tag ) : string
$data string The data to decrypt
$cek string The content encryption key
$iv string The Initialization Vector
$aad string | null Additional Additional Authenticated Data
$encoded_protected_header string The Protected Header encoded in Base64Url
$tag string Tag
리턴 string

encryptContent() 공개 메소드

Encrypt data.
public encryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string &$tag ) : string
$data string The data to encrypt
$cek string The content encryption key
$iv string The Initialization Vector
$aad string | null Additional Additional Authenticated Data
$encoded_protected_header string The Protected Header encoded in Base64Url
$tag string Tag
리턴 string The encrypted data

getCEKSize() 공개 메소드

public getCEKSize ( ) : integer
리턴 integer

getIVSize() 공개 메소드

public getIVSize ( ) : integer | null
리턴 integer | null