Remove <[]> experimental generic syntax.

This commit is contained in:
Christoffer Lerno
2025-02-13 12:53:46 +01:00
parent c785572467
commit 8c58b31bbd
22 changed files with 72 additions and 100 deletions

View File

@@ -34,9 +34,9 @@ struct Sha256
char[BLOCK_SIZE] buffer;
}
def HmacSha256 = Hmac<[Sha256, HASH_SIZE, BLOCK_SIZE]>;
def hmac = hmac::hash<[Sha256, HASH_SIZE, BLOCK_SIZE]>;
def pbkdf2 = hmac::pbkdf2<[Sha256, HASH_SIZE, BLOCK_SIZE]>;
def HmacSha256 = Hmac(<Sha256, HASH_SIZE, BLOCK_SIZE>);
def hmac = hmac::hash(<Sha256, HASH_SIZE, BLOCK_SIZE>);
def pbkdf2 = hmac::pbkdf2(<Sha256, HASH_SIZE, BLOCK_SIZE>);
fn char[HASH_SIZE] hash(char[] data)
{