MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / crypt

Function crypt

libavutil/aes.c:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static inline void crypt(AVAES *a, int s, const uint8_t *sbox, const uint32_t *multbl){
81 int r;
82
83 for(r=a->rounds-1; r>0; r--){
84 mix(a->state, multbl, 3-s, 1+s);
85 addkey(a->state[1], a->state[0], a->round_key[r]);
86 }
87 subshift(a->state[0][0], s, sbox);
88}
89
90void av_aes_crypt(AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt){
91 while(count--){

Callers 1

av_aes_cryptFunction · 0.85

Calls 3

addkeyFunction · 0.85
subshiftFunction · 0.85
mixFunction · 0.70

Tested by

no test coverage detected