• Home
  • Raw
  • Download

Lines Matching refs:nonce

761 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) {  in gen_offset_from_nonce()  argument
785 tmp.u32[1] = ((uint32_t*)nonce)[0]; in gen_offset_from_nonce()
786 tmp.u32[2] = ((uint32_t*)nonce)[1]; in gen_offset_from_nonce()
787 tmp.u32[3] = ((uint32_t*)nonce)[2]; in gen_offset_from_nonce()
938 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, in ae_encrypt() argument
951 if (nonce) { in ae_encrypt()
952 ctx->offset = gen_offset_from_nonce(ctx, nonce); in ae_encrypt()
1155 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad, in ae_decrypt() argument
1176 if (nonce) { in ae_decrypt()
1177 ctx->offset = gen_offset_from_nonce(ctx, nonce); in ae_decrypt()
1386 ALIGN(16) char nonce[] = {0,1,2,3,4,5,6,7,8,9,10,11};
1389 i = ae_encrypt(ctx,nonce,pt,len,pt,len,ct,NULL,AE_FINALIZE);
1391 i = ae_encrypt(ctx,nonce,pt,0,pt,len,ct,NULL,AE_FINALIZE);
1393 i = ae_encrypt(ctx,nonce,pt,len,pt,0,ct,NULL,AE_FINALIZE);
1402 ALIGN(16) char nonce[12] = {0,};
1432 nonce[11] = i;
1435 ae_encrypt(&ctx,nonce,pt,i,pt,i,ct,NULL,AE_FINALIZE);
1439 ae_encrypt(&ctx,nonce,pt,i,pt,0,ct,NULL,AE_FINALIZE);
1443 ae_encrypt(&ctx,nonce,pt,0,pt,i,ct,NULL,AE_FINALIZE);
1447 ae_encrypt(&ctx,nonce,pt,first,pt,first,ct,NULL,AE_PENDING);
1453 ae_encrypt(&ctx,nonce,pt,first,pt,0,ct,NULL,AE_PENDING);
1459 ae_encrypt(&ctx,nonce,pt,0,pt,first,ct,NULL,AE_PENDING);
1467 nonce[11] = 0;
1468 ae_encrypt(&ctx,nonce,NULL,0,val_buf,next-val_buf,ct,tag,AE_FINALIZE);
1478 nonce[11] = i%128;
1481 len = ae_encrypt(&ctx,nonce,val_buf,i,val_buf,i,ct,tag,AE_FINALIZE);
1482 len = ae_encrypt(&ctx,nonce,val_buf,i,val_buf,-1,ct,tag,AE_FINALIZE);
1483 len = ae_decrypt(&ctx,nonce,ct,len,val_buf,-1,pt,tag,AE_FINALIZE);
1488 len = ae_encrypt(&ctx,nonce,val_buf,i,val_buf,i,ct,NULL,AE_FINALIZE);
1489 ae_decrypt(&ctx,nonce,ct,first,val_buf,first,pt,NULL,AE_PENDING);