PHP Classes

File: src/Interfaces/KDFInterface.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   HPKE PHP   src/Interfaces/KDFInterface.php   Download  
File: src/Interfaces/KDFInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: HPKE PHP
Encrypt and decrypt data using hybrid public keys
Author: By
Last change:
Date: 8 days ago
Size: 1,077 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\HPKE\Interfaces;

interface
KDFInterface
{
    public function
getKdfId(): string;
    public function
getHashLength(): int;

    public function
deriveBytes(
       
#[\SensitiveParameter]
       
string|SymmetricKeyInterface $ikm,
       
#[\SensitiveParameter]
       
string $info = '',
       
#[\SensitiveParameter]
       
string $salt = ''
   
): string;

    public function
deriveSymmetricKey(
       
#[\SensitiveParameter]
       
string|SymmetricKeyInterface $ikm,
       
#[\SensitiveParameter]
       
string $info = '',
       
#[\SensitiveParameter]
       
string $salt = ''
   
): SymmetricKeyInterface;

    public function
extract(
       
#[\SensitiveParameter]
       
string|SymmetricKeyInterface $ikm,
       
#[\SensitiveParameter]
       
?string $salt = null
   
): string;

    public function
expand(
       
#[\SensitiveParameter]
       
string|SymmetricKeyInterface $prk,
       
#[\SensitiveParameter]
       
string $info,
       
#[\SensitiveParameter]
       
int $length
   
): string;
}